<% if @sideffect && @sideffect_ratings_number && @sideffect_drugs %>
  <strong>'<%= h(@sideffect.name) %>'</strong> Caused by:
  <br />
  <br />
  Drugs: <strong><%= @sideffect_drugs.size%></strong>  &nbsp; &nbsp; &nbsp;
  Ratings: <strong><%= @sideffect_ratings_number %></strong>
  <table width = "100%">
    <tr bgcolor = "#87a2a3">
      <td>
        Drug
      </td>
      <td>
        Ratings
      </td>
    </tr>
    <% count = 0%>
    <% @sideffect_drugs.each do |drug| %>
       <tr bgcolor = "<%= count % 2 == 0 ? "#ffffff" : "#cae8ea" %>">
          <td align = "left">
            <%= link_to(h(drug.name), :controller => "drug", :action => "show", :id => drug.id) %>
          </td>
          <td align = "right">
            <strong><%= drug.cnt %></strong>
          </td>
          <% count += 1 %>
        </tr>
    <% end %>
  </table>
<% else %>
  <br /><br /><br /><strong>Click Side Effect to Show Detail</strong>
<% end %>